package dao;

import java.util.HashSet;
import java.util.Set;

/**
 * GoodsDetail entity. @author MyEclipse Persistence Tools
 */

public class GoodsDetail implements java.io.Serializable {

	// Fields

	private Integer goodsDetailId;
	private GoodsType goodsType;
	private Produce produce;
	private String goodsName;
	private String units;
	private Double purchaseUnitPrice;
	private Double saleUnitPrice;
	private Set goodses = new HashSet(0);

	// Constructors

	/** default constructor */
	public GoodsDetail() {
	}

	/** minimal constructor */
	public GoodsDetail(Integer goodsDetailId, GoodsType goodsType,
			Produce produce, String goodsName, String units,
			Double purchaseUnitPrice, Double saleUnitPrice) {
		this.goodsDetailId = goodsDetailId;
		this.goodsType = goodsType;
		this.produce = produce;
		this.goodsName = goodsName;
		this.units = units;
		this.purchaseUnitPrice = purchaseUnitPrice;
		this.saleUnitPrice = saleUnitPrice;
	}

	/** full constructor */
	public GoodsDetail(Integer goodsDetailId, GoodsType goodsType,
			Produce produce, String goodsName, String units,
			Double purchaseUnitPrice, Double saleUnitPrice, Set goodses) {
		this.goodsDetailId = goodsDetailId;
		this.goodsType = goodsType;
		this.produce = produce;
		this.goodsName = goodsName;
		this.units = units;
		this.purchaseUnitPrice = purchaseUnitPrice;
		this.saleUnitPrice = saleUnitPrice;
		this.goodses = goodses;
	}

	// Property accessors

	public Integer getGoodsDetailId() {
		return this.goodsDetailId;
	}

	public void setGoodsDetailId(Integer goodsDetailId) {
		this.goodsDetailId = goodsDetailId;
	}

	public GoodsType getGoodsType() {
		return this.goodsType;
	}

	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}

	public Produce getProduce() {
		return this.produce;
	}

	public void setProduce(Produce produce) {
		this.produce = produce;
	}

	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getUnits() {
		return this.units;
	}

	public void setUnits(String units) {
		this.units = units;
	}

	public Double getPurchaseUnitPrice() {
		return this.purchaseUnitPrice;
	}

	public void setPurchaseUnitPrice(Double purchaseUnitPrice) {
		this.purchaseUnitPrice = purchaseUnitPrice;
	}

	public Double getSaleUnitPrice() {
		return this.saleUnitPrice;
	}

	public void setSaleUnitPrice(Double saleUnitPrice) {
		this.saleUnitPrice = saleUnitPrice;
	}

	public Set getGoodses() {
		return this.goodses;
	}

	public void setGoodses(Set goodses) {
		this.goodses = goodses;
	}

}